import * as types from './mutations_types';

export default {
  set_cur_route: ({commit}, paths) => {
    commit(types.SET_CUR_ROUTE, paths);
  },
  saveRouter: ({commit}, paths) => {
    commit(types.SAVE_ROUTE, paths);
  },
  removeRouter: ({commit}) => {
    commit(types.REMOVE_ROUTER);
  },
  saveCurrentRouter: ({commit}, paths) => {
    commit(types.SAVE_CURRENT_ROUTER, paths);
  },
  removeCurrentRouter: ({commit}, paths) => {
    commit(types.REMOVE_CURRENT_ROUTER, paths);
  }
};